package cn.yanji.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;

/**
 * @author yanji w2c17lin@qq.com
 * @since 2018/11/7 上午 09:05
 */
public class ContentRow extends BaseRowModel {

	@ExcelProperty(value = "题目", index = 0)
	private String content;

	@ExcelProperty(value = "技巧", index = 1)
	private String skill;

	@ExcelProperty(value = "技巧图片", index = 2)
	private String skillGif;

	public static ContentRow of(String content, String skill, String skillGif) {
		return new ContentRow(content, skill, skillGif);
	}

	public ContentRow() {
	}

	public ContentRow(String content, String skill, String skillGif) {
		this.content = content;
		this.skill = skill;
		this.skillGif = skillGif;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getSkill() {
		return skill;
	}

	public void setSkill(String skill) {
		this.skill = skill;
	}

	public String getSkillGif() {
		return skillGif;
	}

	public void setSkillGif(String skillGif) {
		this.skillGif = skillGif;
	}

	@Override
	public String toString() {
		return "ContentRow{" +
				"content='" + content + '\'' +
				", skill='" + skill + '\'' +
				", skillGif='" + skillGif + '\'' +
				'}';
	}
}
